package com.etc.service.impl;

import com.etc.dao.OwnerDao;
import com.etc.entity.Owner;
import com.etc.service.OwnerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class OwnerServiceImpl implements OwnerService {

    @Resource
    private OwnerDao ownerDao;
    @Override
    public int insert(Owner owner) {
        return ownerDao.insert(owner);
    }

    @Override
    public Owner findByName(String name) {
        return ownerDao.findByName(name);
    }


}
